package com.xiaotu;

/**
 * @Author xiaotu
 * @Description //TODO
 * @Date 2022/3/30 17:15
 * @ClassName ReflectionTest01
 * @Version 1.0
 **/
public class ReflectionTest01 {
    public static void main(String[] args) {
        Person person = new Person();
        try {
            Class aClass = person.getClass();
            Class aClass1 = Class.forName("com.xiaotu.Person");
            Class personClass = Person.class;
            //第四种  基本内置类型的包装类都有一个type属性
            Class<Integer> type = Integer.TYPE;
            System.out.println(aClass.hashCode());
            System.out.println(aClass1.hashCode());
            System.out.println(personClass.hashCode());
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        }
    }
}
